package com.example.jixeishi1.service;


import com.example.jixeishi1.dao.AddressMapper;
import com.example.jixeishi1.entity.AddressEntity;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class AddressService {
    @Resource
    AddressMapper addressMapper;

    public List<AddressEntity> getListAddressByUid(){
        List<AddressEntity> getListAddressByUid = addressMapper.getListAddressByUid();
        return getListAddressByUid;
    }

    public void saveAddress(AddressEntity addressEntity) {
        addressMapper.saveAddress(addressEntity);
    }

    public void delete(Integer id) {
        addressMapper.delete(id);

    }
}
